package com.ruoyi.system.entity;

import io.mybatis.provider.Entity.Column;
import io.mybatis.provider.Entity.Table;
import lombok.Data;
import org.apache.ibatis.type.JdbcType;

import java.util.Date;

/**
 * sys_operate_log - 操作日志记录
 *
 * @author mkj
 */
@Data
@Table(value = "sys_operate_log", remark = "操作日志记录", autoResultMap = true)
public class SysOperateLogDO extends BaseDO {
    @Column(value = "oper_id", id = true, remark = "日志主键", updatable = false, insertable = false)
    private Long operId;

    @Column(value = "title", remark = "模块标题")
    private String title;

    @Column(value = "business_type", remark = "业务类型（0其它 1新增 2修改 3删除）")
    private Integer businessType;

    @Column(value = "method", remark = "方法名称")
    private String method;

    @Column(value = "request_method", remark = "请求方式")
    private String requestMethod;

    @Column(value = "operator_type", remark = "操作类别（0其它 1后台用户 2手机端用户）")
    private Integer operatorType;

    @Column(value = "oper_name", remark = "操作人员")
    private String operName;

    @Column(value = "dept_name", remark = "部门名称")
    private String deptName;

    @Column(value = "oper_url", remark = "请求URL")
    private String operUrl;

    @Column(value = "oper_ip", remark = "主机地址")
    private String operIp;

    @Column(value = "oper_location", remark = "操作地点")
    private String operLocation;

    @Column(value = "oper_param", remark = "请求参数")
    private String operParam;

    @Column(value = "json_result", remark = "返回参数")
    private String jsonResult;

    @Column(value = "status", remark = "操作状态（0正常 1异常）")
    private Integer status;

    @Column(value = "error_msg", remark = "错误消息")
    private String errorMsg;

    @Column(value = "oper_time", remark = "操作时间", jdbcType = JdbcType.TIMESTAMP)
    private Date operTime;

}
